<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>50bus-创意发布</title>
    <meta name="keywords" content="50bus" />
    <meta name="copyright" content="50bus.cn" />
    <!-- <meta http-equiv="mobile-agent" content="http://www.50bus.cn/" />
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" /> -->
    <link rel="icon" href="/resources/img/favicon.ico" type="image/x-icon" />
    
    <link rel="stylesheet" type="text/css" href="/resources/css/base.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/globe.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/page.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/module-creative.css" media="all" />
    <script type="text/javascript" src="/resources/js/jquery-1.9.1.min.js"></script>
</head>

<body>
    <div class="header_wrap">
        <div class="header clearfix">
            <div class="fm980 fl clearfix">
                <a href="/index.html" class="logo fl"></a>
                <ul class="nav_box fl">
                    <li><a href="/creative_list.html" class="cur">形象创意</a></li>
                    <li><a href="/script_list.html">剧本创作</a></li>
                    <li><a href="/render_index.html">动画渲染</a></li>
                    <li><a href="/creative_helper.html">创意助手</a></li>
                </ul>
                <div class="about_box fr">
                    <a href="/about.html">关于我们</a>
                   <#if uid??&&uid!="">
                     <a href="/user/user_work.html">个人空间</a>
	                 <a href="/logout.html">退出</a>
                   <#else>
                    <a href="/register.html">注册</a>
                    <a href="/login.html" class="cur">登录</a>
                   </#if>
                </div>
            </div>
        </div>
    </div>
    <div class="body_wrap">
        <div class="box_2">
            <div class="fm980">
                <div class="box_hd"><a href="/creative_list.html">形象创意</a> &gt; ${creativeModel.title}</div>
                <div class="works_detail_box clearfix">
                    <!-- 左侧创意文章 ${creativeModel.uid} tt ${uid}-->
                    <div class="works_detail_left fl">
                       <#if uid??&&uid!=""&&uid==creativeModel.uid> 
                          <a id="data-login" class="btn_oper_purple mt10 fr" href="/creative_editor.html?creative_uid=${creativeModel.uid}&cid=${creativeModel.cid}">编辑</a>
                       <#else>
                          <a id="data-logout" style="display:none;" class="btn_oper_purple mt10 fr" href="javascript:void;">编辑</a>
                       </#if>
                        <p class="works_title">${creativeModel.title}</p>
                        <div class="user_name clearfix">
                            <#if userModel.header_img?? && userModel.header_img!=''>
                              <img class="r10 fl" style="width:20px;height:20px;" src="${userModel.header_img}" />
	                        <#else>
	                          <img class="r10 fl" src="/resources/img/user_def_70.png" style="width:20px;height:20px;"/>
	                        </#if>
                            <span class="fz14 ml5 fl">${userModel.comp}</span>
                            <span class="fz14 ml15 fl">${creativeModel.current_data?datetime("yyyy-MM-dd")?date}</span>
                        </div>
                        <div class="works_desc">
                            <p class="w_d_t">${creativeModel.cdescribe}</p>
                            <#list creativeUrlList as creativeurl>
                            	<p class="w_d_p"><img style="width:576px;height:366px;" src=${creativeurl.matter_url} /></p>
                            </#list>
                        </div>
                        <div class="txt_center fav_heart_box <#if like_flag == 1>faved_heart_box</#if>">
                        	<a href="javascript:;" class="fav_heart_80"></a>
                        	<br>
                            <span class="like_box_14">
	                            <span class="num">${creativeModel.addlike}</span>
	                            <b class="fav_heart"></b>
                            </span>
                        </div>
                    </div>
                    <div class="works_detail_right fr">
                        
                        <!-- 购买按钮 自己模式时会隐藏 -->
                        <div class="btn_buy_box">
                            <a class="btn_com_purple" href="creative_buy.html?cid=${creativeModel.cid}">购买（￥${creativeModel.cvalue}）</a>
                        </div>
                        <!-- 作品信息 -->
                        <div class="works_info_box">
                            <p style="display:none;"角色类型：类型类型类型</p>
                            <p>授权说明：<br>
                                ${creativeModel.autro_instr}
                            </p>
                            <p style="display:none;">授权范围：<br>
                                <span>印刷</span><span>印刷</span><span>动动画</span><span>印刷</span><span>印刷印刷</span><span>动画</span>
                            </p>
                            <p style="display:none;">授权期限：${creativeModel.current_data}-${creativeModel.current_data}</p>
                        </div>
                        <!-- 查看相似作品 -->
                        <ul class="works_show_list clearfix">
                           <#list creativeList as creative>
                            <li>
                               <a href="/creative_detail.html?cid=${creative.cid}&uid_creative=${creative.uid}"> 
                                <div class="works_show">
                                    <div class="works_img"><#if creative.cover_url??&&creative.cover_url!=""><img style="width:214px;height:132px;" src="${creative.cover_url}" /><#else><img src="/resources/img/eg_works_214.png" /></#if></div>
                                    <div class="works_type_box clearfix">
                                        <span style="display:none;" class="works_type fl">卡通类</span>
                                        <span class="like_box fr">${creative.addlike}<b class="fav_heart"></b></span>
                                    </div>
                                    <div class="works_name">${creative.title}</div>
                                    <i style="display:none;" class="icon_new"></i>
                                    <i class="price_box">&yen;${creative.cvalue}</i>
                                </div>
                               </a> 
                               <p class="user_name clearfix">
                                    <#if userModel.header_img?? && userModel.header_img!=''>
                              			<img class="r10 fl" style="width:20px;height:20px;" src="${userModel.header_img}" /><span class="fz14 ml5 fl"><a href="#">${userModel.comp}</a></span>
	                        		<#else>
	                          			<img class="r10 fl" src="/resources/img/user_def_70.png" style="width:20px;height:20px;"/><span class="fz14 ml5 fl"><a href="#">${userModel.comp}</a></span>
	                        		</#if>
                               </p>
                            </li>
                           </#list>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="fm980 clearfix">
            <div class="foot_link foot_link1 fl">
                <a href="/creative_list.html">形象创意</a>
                <a href="/script_list.html">剧本创作</a>
                <a href="/render_index.html">动画渲染</a>
                <a href="/creative_helper.html" >创意助手</a>
            </div>
            <div class="foot_link foot_link2 fl">
                <a href="http://zjusp.zju.edu.cn/">浙大科技园</a>
                <a href="http://www.zju.edu.cn/">浙江大学</a>
                <a href="/about.html" >关于我们</a>
            </div>
            <div class="copy_box fr">
                <img class="mb5" src="/resources/img/foot_text.png" />
                <p>&copy; 2013-2016 All right reserved</p>
                <p><a href="">服务条款</a><a href="">隐私条款</a><a href="">法律条款</a></p>
                <p style="display:none;"><a href="" class="share_icon share_sina"></a><a href="" class="share_icon share_wx"></a></p>
            </div>
        </div>
    </div>
<script type="text/javascript">
/*var serverUid=${creativeModel.uid};
if($.cookie("uid")==serverUid){
	$("#data-login").show();
	$("#data-logout").hide();
}	
else{
	$("#data-login").hide();
	$("#data-logout").show();              
}*/
  $(function(){
		$(".fav_heart_80").click(function(){
				var _this = $(this);
				<#if uid==null||uid==''>
					alert("请先进行登陆");
				<#else>
				$.post("creative_like.json?cid=${creativeModel.cid}",function(data){
					if(data.success=="true"){
  						$(".num").html(data.addlike);
  						$(".fav_heart_box").addClass("faved_heart_box");
					}
			 	 });
			 	</#if>
		});
	});
</script>
<script type="text/javascript">
	<#if uid??&&uid!="">
    	$.post("/common/getUserName.json",{"uid":${uid}},function(data){
    		if(data.name){
    			$('a[href="/user/user_work.html"]').html(data.name+"个人空间");
    		}
    	});
	</#if>
</script>
</body>
</html>